package com.bdqn.mybatisjpa.entity;


import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
//@Data
//@NamedQueries(@NamedQuery(name = "SysUser.findUserByName", query = "select u from SysUser u where u.usrName = ?1"))
public class SysUser implements Serializable {
 @Serial
 private static final long serialVersionUID = 42L;
  private Integer usrId;

  private String usrName;

  private String usrPassword;

  private Integer usrRoleId;

  private Integer usrFlag;

    @Override
    public String toString() {
        return "SysUser{" +
                "usrId=" + usrId +
                ", usrName='" + usrName + '\'' +
                ", usrPassword='" + usrPassword + '\'' +
                ", usrRoleId=" + usrRoleId +
                ", usrFlag=" + usrFlag +
                '}';
    }

    public SysUser(String usrName, String usrPassword, Integer usrRoleId, Integer usrFlag) {
    this.usrName = usrName;
    this.usrPassword = usrPassword;
    this.usrRoleId = usrRoleId;
    this.usrFlag = usrFlag;
  }

  public SysUser() {
  }

  public Integer getUsrId() {
    return usrId;
  }

  public void setUsrId(Integer usrId) {
    this.usrId = usrId;
  }

  public String getUsrName() {
    return usrName;
  }

  public void setUsrName(String usrName) {
    this.usrName = usrName;
  }

  public String getUsrPassword() {
    return usrPassword;
  }

  public void setUsrPassword(String usrPassword) {
    this.usrPassword = usrPassword;
  }

  public Integer getUsrRoleId() {
    return usrRoleId;
  }

  public void setUsrRoleId(Integer usrRoleId) {
    this.usrRoleId = usrRoleId;
  }

  public Integer getUsrFlag() {
    return usrFlag;
  }

  public void setUsrFlag(Integer usrFlag) {
    this.usrFlag = usrFlag;
  }
}
